Class PropertyMigrationBuilder<TProps, TProp>
IPropertyMigrationBuilder implementation
public class PropertyMigrationBuilder<TProps, TProp> : IPropertyMigrationBuilder<TProps, TProp> where TProps : class
Inheritance
Implements
Methods
ComputedFrom(Expression<Func<TProps, TProp>>)
Computed field from other fields.
public IPropertyMigrationBuilder<TProps, TProp> ComputedFrom(Expression<Func<TProps, TProp>> expression)
DefaultValue(TProp)
Default value for new field.
public IPropertyMigrationBuilder<TProps, TProp> DefaultValue(TProp value)
OnTypeChange<TFrom, TTo>()
Field type change with custom conversion.
public ITypeChangeMigrationBuilder<TProps, TFrom, TTo> OnTypeChange<TFrom, TTo>()
Transform(Expression<Func<TProp, TProp>>)
Transform values without type change.
public IPropertyMigrationBuilder<TProps, TProp> Transform(Expression<Func<TProp, TProp>> transformer)
When(Expression<Func<TProps, bool>>)
Condition for applying migration.
public IPropertyMigrationBuilder<TProps, TProp> When(Expression<Func<TProps, bool>> condition)